//
//  LPSaveTool.m
//  彩票
//
//  Created by liupan on 2016/12/6.
//  Copyright © 2016年 liupan. All rights reserved.
//

#import "LPSaveTool.h"

@implementation LPSaveTool
+ (nullable id)objectForKey:(NSString *)defaultName{

   return [[NSUserDefaults standardUserDefaults] objectForKey:defaultName];
}

+ (void)setObject:(nullable id)value forKey:(NSString *)defaultName{

    //存储当前版本号
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:defaultName];
    //强制存储
    [[NSUserDefaults standardUserDefaults] synchronize];
}
@end
